package com.netdisk.vo;

import java.security.NoSuchAlgorithmException;

import com.netdisk.entity.Company;
import com.netdisk.entity.User;
import com.netdisk.util.EncrypSHA;

public class CompanyInfo {
	
	private String companyName;

	private int employeeCount;

	private String locate;
	
	private String phone;

	public CompanyInfo(){}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public int getEmployeeCount() {
		return employeeCount;
	}

	public void setEmployeeCount(int employeeCount) {
		this.employeeCount = employeeCount;
	}

	public String getLocate() {
		return locate;
	}

	public void setLocate(String locate) {
		this.locate = locate;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public Company getCompany() throws NoSuchAlgorithmException{
		Company comp = new Company();
		comp.setCompanyName(this.companyName);
		comp.setEmployeeCount(this.employeeCount);
		comp.setLocate(this.locate);
		comp.setPhone(phone);
		return comp;
	}

	@Override
	public String toString() {
		return "EnterpriseInfo [companyName=" + companyName
				+ ", employeeCount=" + employeeCount + ", locate=" + locate
				+ ", phone=" + phone + "]";
	}
	
	
}
